﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyMvc.Common
{
    /// <summary>
    /// 该实体类是基础数据操作返回值
    /// </summary>
    public class JsonResponse
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool success
        {
            get;
            set;
        }

        /// <summary>
        /// 如果成功，返回结果数据集
        /// 如果失败，返回错误信息
        /// </summary>
        public object ResponseData
        {
            get;
            set;
        }

        /// <summary>
        /// 返回结果集数据行数
        /// </summary>
        public int DataCount = 0;

        /// <summary>
        /// 返回结果集页数
        /// </summary>
        public int PageCount = 0;
    }

    ///// <summary>
    ///// 此类给sencha toucha 表单提交时使用
    ///// </summary>
    //public class JsonResponseExt
    //{
    //    public Boolean success { get; set; }
    //    public object data { get; set; }
    //}
}
